package com.wonders.hisdoctor.station.project.record.vo;

import com.wonders.hisdoctor.station.project.base.domain.WdeditorDs;
import com.wonders.hisdoctor.station.project.base.domain.WdeditorDsset;
import com.wonders.hisdoctor.station.project.base.domain.WdeditorHistory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * Description: 病历模板VO
 *
 * @author tong-aj
 * <p>
 * Create: 2021-02-24 11:22
 */
@Data
@ApiModel("病历模板")
public class WdEditorVo {

    @ApiModelProperty("静态数据源信息")
    private WdeditorDs wdeditorDsStaic;
    @ApiModelProperty("业务数据源信息")
    private WdeditorDs wdeditorDsData;

    @ApiModelProperty("病历模板控件")
    private WdeditorDsset wdeditorDsset;

    @ApiModelProperty("自定义值")
    private List<String> customValues;

    @ApiModelProperty("控件默认值")
    private String defaultValue;

    @ApiModelProperty("控件最小值（含）")
    private Long minInclusive;

    @ApiModelProperty("控件最大值（含）")
    private Long maxInclusive;

    @ApiModelProperty("存储接口名称")
    private String storageName;

    @ApiModelProperty("存储接口参数")
    private String storageParameter;

    // 字典表：
    @ApiModelProperty("静态数据显示字段")
    private String staticShowField;

    @ApiModelProperty("静态数据取值存储字段")
    private String staticStorageField;

    @ApiModelProperty("静态数据组")
    private List<Map<String,Object>> staticDataList;

    // 业务表/视图：
    @ApiModelProperty("控件读取的字段名称")
    private String readField;

    @ApiModelProperty("控件读取组ID")
    private String readGroupId;

    @ApiModelProperty("历史修改内容")
    private List<WdeditorHistory> wdeditorHistoryList;

    @ApiModelProperty("classId对应的value")
    private Object classIdValue;
}
